package com.iptv2.front.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the tbl_product database table.
 * 
 */
@Entity
@Table(name="tbl_product")
public class Product implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="p_id")
	private int pId;

	private String contentid;

	@Temporal(TemporalType.TIMESTAMP)
	private Date createtime;

	private int isrecommended;

	@Temporal(TemporalType.TIMESTAMP)
	private Date modifytime;

	@Column(name="p_author")
	private String pAuthor;

	@Column(name="p_browse_count")
	private int pBrowseCount;

	@Lob
	@Column(name="p_desc")
	private String pDesc;

	@Column(name="p_img")
	private String pImg;

	@Column(name="p_mediaurl")
	private String pMediaurl;

	@Column(name="p_name")
	private String pName;

	@Column(name="p_number")
	private String pNumber;

	@Column(name="p_recommended_index")
	private int pRecommendedIndex;

	@Column(name="p_type")
	private int pType;

	private int state;

	public Product() {
	}

	public int getPId() {
		return this.pId;
	}

	public void setPId(int pId) {
		this.pId = pId;
	}

	public String getContentid() {
		return this.contentid;
	}

	public void setContentid(String contentid) {
		this.contentid = contentid;
	}

	public Date getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public int getIsrecommended() {
		return this.isrecommended;
	}

	public void setIsrecommended(int isrecommended) {
		this.isrecommended = isrecommended;
	}

	public Date getModifytime() {
		return this.modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public String getPAuthor() {
		return this.pAuthor;
	}

	public void setPAuthor(String pAuthor) {
		this.pAuthor = pAuthor;
	}

	public int getPBrowseCount() {
		return this.pBrowseCount;
	}

	public void setPBrowseCount(int pBrowseCount) {
		this.pBrowseCount = pBrowseCount;
	}

	public String getPDesc() {
		return this.pDesc;
	}

	public void setPDesc(String pDesc) {
		this.pDesc = pDesc;
	}

	public String getPImg() {
		return this.pImg;
	}

	public void setPImg(String pImg) {
		this.pImg = pImg;
	}

	public String getPMediaurl() {
		return this.pMediaurl;
	}

	public void setPMediaurl(String pMediaurl) {
		this.pMediaurl = pMediaurl;
	}

	public String getPName() {
		return this.pName;
	}

	public void setPName(String pName) {
		this.pName = pName;
	}

	public String getPNumber() {
		return this.pNumber;
	}

	public void setPNumber(String pNumber) {
		this.pNumber = pNumber;
	}

	public int getPRecommendedIndex() {
		return this.pRecommendedIndex;
	}

	public void setPRecommendedIndex(int pRecommendedIndex) {
		this.pRecommendedIndex = pRecommendedIndex;
	}

	public int getPType() {
		return this.pType;
	}

	public void setPType(int pType) {
		this.pType = pType;
	}

	public int getState() {
		return this.state;
	}

	public void setState(int state) {
		this.state = state;
	}

}